package com.szh.consumer.lister;


import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.function.Consumer;

@Service
@Slf4j
public class V3Listener {
    /**
     * demoChannel 是管道的名字
     * @return
     */
    @Bean
    public Consumer<String> demoChannel() {
        return message -> {
            log.info("接收消息为：{}", message);
        };
    }
}
